package com.csap.framework.oauth2.server.service;

import com.csap.framework.oauth2.server.dao.model.UserPermissionsDAO;
import com.csap.framework.oauth2.server.service.model.UserPermissionsDTO;
import com.csap.framework.core.factory.service.ICsService;

import java.util.Set;

/**
 * <p>
 * 用户独立拥有的权限
 * </p>
 *
 * @author yangchengfu
 * @dateTime 2023-11-22 22:56:44
 */
public interface UserPermissionsService extends ICsService<UserPermissionsDTO, UserPermissionsDAO, Long> {
    /**
     * 用户自己的权限
     *
     * @param userId 用户Id
     * @return 结果
     */
    Set<String> permissions(String userId);
}
